#!/bin/python
# -*- coding: utf-8 -*-
# 11、使用python读取/etc/ssh/sshd_config文件，读取它的前5行
# 过滤掉以#号开头的行和空行输出
import pandas as p
import re
path = r"/etc/ssh/sshd_config"
file = p.read_csv(path)
for i in file.head(5):
    print(re.sub(r"^\s*#.*$", "", i))